package com.fa4j.common.base.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.util.List;


@Data
@Builder
@Schema(description = "分页数据")
public class Page<T> {

    @Schema(description = "总数")
    private Long total;

    @Schema(description = "分页大小")
    private Long size;

    @Schema(description = "当前页")
    private Long current;

    @Schema(description = "分页列表")
    private List<T> records;

    @Schema(description = "排序字段")
    private String orderBy;

    @Schema(description = "排序是否顺序")
    private Boolean orderAsc;

}
